A Simple Heuristic to Find Efficiently k-Nearest Neighbors in Flocking Behaviors
نویسندگان
چکیده
Flocking behaviors are used in games and computer graphics for realistic simulation of massive crowds. Simulation of massive crowds in real time is a computationally intensive task. This intensity mostly comes from the O(n 2 ) complexity of the traversal algorithm. It is because each agent in crowd has to decide for itself which neighbors fall into its environment. There are several algorithms to enhance the simulation of flocking behaviors. One of the efficient algorithms adapted the characteristic of the flocking behaviors which two agents may share many common neighbors if they are spatially close to each other. It ran up to two times faster than the conventional flocking algorithm based on spatial subdivision method. In this paper we present a noble flocking algorithm that yields an improvement in the execution time over the previous algorithm based on the characteristic. To do this, we analyzed the weakness of the previous algorithm and proposed the simple heuristic to overcome the weakness. A number of experiments were conducted to evaluate the performance of the proposed algorithm. The experimental results showed that the proposed algorithm outperformed the previous method by about 20%. Key-Words: Flocking behavior, Agent, Spatial subdivision, k-nearest neighbors
منابع مشابه
Balancing Considered Harmful - Faster Photon Mapping using the Voxel Volume Heuristic
Photon mapping is one of the most important algorithms for computing global illumination. Especially for efficiently producing convincing caustics, there are no real alternatives to photon mapping. On the other hand, photon mapping is also quite costly: Each radiance lookup requires to find the k nearest neighbors in a kd-tree, which can be more costly than shooting several rays. Therefore, the...
متن کاملA New Hybrid Approach of K-Nearest Neighbors Algorithm with Particle Swarm Optimization for E-Mail Spam Detection
Emails are one of the fastest economic communications. Increasing email users has caused the increase of spam in recent years. As we know, spam not only damages user’s profits, time-consuming and bandwidth, but also has become as a risk to efficiency, reliability, and security of a network. Spam developers are always trying to find ways to escape the existing filters therefore new filters to de...
متن کاملSearching k-Nearest Neighbors to be Appropriate under Gamming Environments
In general, algorithms to find continuous k-nearest neighbors have been researched on the location based services, monitoring periodically the moving objects such as vehicles and mobile phone. Those researches assume the environment that the number of query points is much less than that of moving objects and the query points are not moved but fixed. In gaming environments, this problem is when ...
متن کاملk*-Nearest Neighbors: From Global to Local
The weighted k-nearest neighbors algorithm is one of the most fundamental nonparametric methods in pattern recognition and machine learning. The question of setting the optimal number of neighbors as well as the optimal weights has received much attention throughout the years, nevertheless this problem seems to have remained unsettled. In this paper we offer a simple approach to locally weighte...
متن کاملSearching k-Nearest Neighbors to be Appropriate under Gamming Environments
In general, algorithms to find continuous k-nearest neighbors have been researched on the location based services, monitoring periodically the moving objects such as vehicles and mobile phone. Those researches assume the environment that the number of query points is much less than that of moving objects and the query points are not moved but fixed. In gaming environments, this problem is when ...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2012